$def with (keys, mapping)

$var title: $_("[Admin Center] Inspect Memcache")

<div id="contentHead">
    $:render_template("admin/menu")
    <h1>$_("Inspect Memcache")</h1>
</div>

<div id="contentBody">

    <div>
        <form name="by_key" class="olform">
            <p>
                $_("Add one memcache key per line in the text area. Each key must include a '-' as the last character.")
            </p>
            <p>
                $:_('For example, <code>observations-</code> should be entered in the text area if the key is <code>observations</code>.')
            </p>
            $_("Keys:")<br/>
            <textarea name="keys" rows="5">$"\n".join(keys)</textarea>
            <br/>
            <button type="submit" name="action" value="read">$_("Read")</button>
            <button type="submit" name="action" value="delete">$_("Delete")</button>
        </form>

        <h3>$_("Result")</h3>
            $if not keys:
                <em>$_("No keys selected.")</em>
            $else:
                <div style="padding: 0px 10px;">
                $for key in keys:
                    <div style="padding: 5px 0px;">
                        <strong>$key</strong><br/>
                        $if key in mapping:
                            <pre>$:mapping[key]</pre>
                        $else:
                            <em>$_("Not found.")</em>
                    </div>
                </div>
    </div>

</div>
